
public class jStocksTester {

	public static void main (String[] args){
		
		jStocksClass Testshares = new jStocksClass();
		
		String[] arr = {"MEDAA.ST", "SCVB.ST", "INVEB.ST"};
		float[] changes = {0,0,0};
		float[] rate = {0,0,0};
		String[] tickername = {" ", " ", " "};
		for(int i = 0; i < arr.length; i++){
			
			Testshares = jStocksClass.getInstans().getStockPrice(arr[i]);
			
			rate[i] = Testshares.getPrice();
			tickername[i] = Testshares.getTicker(); 
			changes[i] = Testshares.getChange();
		}
		
		System.out.println("Resultaten: ");
		for(int j = 0; j < arr.length; j++){

			System.out.println(tickername[j] + " " + rate[j] + " kr    "+ changes[j] + " kr");
			
		}
		 
		 
		 
	}
}
